export default [
	{
		key: "storeName",
		label: "入库门店",
		component: "InputField",
		maxlength: 50,
		// required: true,
		readOnly: true
	},
	{
		key: "goodsId",
		label: "入库商品",
		component: "SelectListField",
		required: true,
		toSelectPage:"../base/selectGood?value=",
	},
	{
		key: "source",
		label: "来源",
		component: "dataSelectField",
		options: [],
		required: true,
		effect: ["onlinePlat", "platGoodId"],
		optKey:"goodSource"
	},
	{
		key: "purpose",
		label: "用途",
		component: "dataSelectField",
		options: [],
		required: true,
		optKey:"goodPurpose"
		// effect: ["totalCostPrice", "costPrice"]
	},
	{
		key: "onlinePlat",
		label: "平台",
		component: "dataSelectField",
		options: [],
		required: true,
		isShow: false,
		relations: {
			"source": [1]
		},
		optKey:"platInfo"
	},
	{
		key: "platGoodId",
		label: "平台商品ID",
		component: "InputField",
		type: "number",
		required: true,
		maxlength: 50,
		isShow: false,
		relations: {
			"source": [1]
		}
	},
	{
		key: "totalCostPrice",
		label: "总价",
		component: "InputField",
		type: "number",
		isShow: false,
		maxlength: 50,
		// relations: {
		// 	"purpose": [4]
		// }
	},
	{
		key: "costPrice",
		label: "成本价",
		component: "InputField",
		type: "number",
		isShow: false,
		maxlength: 50,
		auth:'Admin'
	},
	{
		key: "stock",
		label: "入库数量",
		component: "InputField",
		type: "number",
		maxlength: 50,
		required: true,
	},
	{
		key: "remark",
		label: "入库说明",
		component: "EasyInputField",
		type: "string",
		maxlength: 500,
	}
]